package net.adst.beans;

import org.apache.poi.hssf.usermodel.HSSFRow;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 15.12.12
 * Time: 12:52
 * To change this template use File | Settings | File Templates.
 */
public class OurTecInf {
    private String fullName;
    private String shortName;
    private String costHour;
    private String rashod;
    private String salary;

    public OurTecInf(HSSFRow row) {
        if (row.getCell(1).toString() != null) {
            this.fullName = row.getCell(1).toString();
        } else {
            this.fullName = "";
        }
        if (row.getCell(2).toString() != null) {
            this.shortName = row.getCell(2).toString();
        } else {
            this.shortName = "";
        }
        if (row.getCell(3).toString() != null) {
            this.rashod = row.getCell(3).toString();
        } else {
            this.rashod = "";
        }
        if (row.getCell(4).toString() != null) {
            this.salary = row.getCell(4).toString();
        } else {
            this.salary = "";
        }
        if (row.getCell(5).toString() != null) {
            this.costHour = row.getCell(5).toString();
        } else {
            this.costHour = "0";
        }

    }

    public OurTecInf(String fullName, String shortName, String costHour, String rashod, String salary) {
        this.fullName = fullName;
        this.shortName = shortName;
        this.costHour = costHour;
        this.rashod = rashod;
        this.salary = salary;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getRashod() {
        return rashod;
    }

    public void setRashod(String rashod) {
        this.rashod = rashod;
    }

    public String getSalary() {
        return salary;
    }

    public void setSalary(String salary) {
        this.salary = salary;
    }

    public String getCostHour() {
        return costHour;
    }

    public void setCostHour(String costHour) {
        this.costHour = costHour;
    }
}
